package cn.bdqn.easyexcel_web.service.impl;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.bdqn.easyexcel_web.dao.UserDao;
import cn.bdqn.easyexcel_web.pojo.User;
import cn.bdqn.easyexcel_web.service.UserService;
@Service("userService")
public class UserServiceImpl implements UserService{
	@Autowired
	private UserDao userdao;
	@Override
	public List<User> listAll() {
		return userdao.selectAll();
	}
	@Override
	public int add(User user) {
		return userdao.insert(user);
	}

}
